#ifndef __CGAME_H__
#define __CGAME_H__

#include "CPlaySene.h"
#include "CSeneManager.h"
#include "trace.h"

class CGame
{
protected:
	static CGame* _pInstance;

	HINSTANCE _hInstance;
	
	DWORD _deltaTime;
	D3DXGraphic* _gfx;
	D3DXInput* _input;
	SOUND* _sound;

	bool _isAlived;
	bool _isPaused;

	virtual void Init() = 0;

public:
	static CGame* GetInstance() { return _pInstance; }

	CGame(HINSTANCE hInstance);
	~CGame();
	virtual void Run();
	virtual void Exit();
	virtual void Pause();
	virtual void Resume();

	HWND _hWnd;
	bool IsAlived();
	bool IsPaused();
};

#endif